package com.tmeone.erpone.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.SCompany;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tmeone.erpone.entity.SCompanys;
import com.tmeone.erpone.entity.SRole;
import com.tmeone.erpone.entity.TProduct;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tmeone
 * @since 2021-04-18
 */
public interface SCompanyMapper extends BaseMapper<SCompany> {
    IPage<SCompany> pageSCompanys(IPage<SCompany> page);
    //根据公司id查商品
    IPage<TProduct> pageTProduct(IPage<TProduct> page,String companyId);
    //模糊查询和地址查询
    IPage<SCompany> pageUcompany(IPage<SCompany> page,String prov,String city,String district,String input);

}
